package com.ruoyi.system.service;

import com.ruoyi.common.core.domain.entity.*;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: ruohao
 * @Date: 2023/8/6
 **/
public interface IFoodStockService {
    public List<FoodStock> selectRestaurantStoreResourceList(FoodStock resource);

    public FoodStock selectRestaurantStoreResourceById(Long id);

    public int insertFoodStock(FoodStock foodStock);

    public List<FoodStock> selectRestaurantStoreResourceByIds(List<Long> id);

    public Boolean deleteRestaurantStoreResourceById(Long id);

    public int deleteRestaurantStoreResourceByIds(List<Long> ids);

    //盘点后修改库存
    void updateStockById(String area, Long resourceId, BigDecimal amount, BigDecimal storeAmount);

    //入库后修改库存
    void updateStockByIn(StoreIn storeIn, List<StoreInDetail> details);

    //出库后修改库存
    void updateStockByOut(StoreOut storeOut, List<StoreOutDetail> details);

    //获取库存大于0的记录
    List<FoodStock> selectRestaurantStoreResourceListByStock(FoodStock query);

    //获取库存记录
    List<FoodStock> selectRestaurantStoreResourceListByStockOne(FoodStock query);
}
